package com.moonshineproject.plugin.templating.settings
{
	import com.moonshineproject.plugin.settings.vo.AbstractSetting;
	import com.moonshineproject.plugin.templating.settings.renderer.TemplateRenderer;
	
	import flash.filesystem.File;
	
	import mx.core.IVisualElement;
	
	public class TemplateSetting extends AbstractSetting
	{
		protected var rdr:TemplateRenderer = new TemplateRenderer();
		
		public var originalTemplate:File;
		public var customTemplate:File;
		
		public var fakeSetting:String = "";
		
		public function TemplateSetting(originalTemplate:File , customTemplate:File, label:String)
		{
			super();
			this.provider = this;
			this.name = 'fakeSetting';
			this.label = label;
			this.customTemplate = customTemplate;
			this.originalTemplate = originalTemplate;
			defaultValue = stringValue = "";
		}
		
		override public function get renderer():IVisualElement
		{
			rdr.setting = this;
			return rdr;
		}
		
	}
}